package cn.cai.pethome.wechat.mapper;

import cn.cai.pethome.wechat.domain.Wxuser;
import cn.cai.pethome.base.mapper.BaseMapper;
import cn.cai.pethome.wechat.dto.TokenResultDto;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaocai
 * @since 2022-09-03
 */
@Component
public interface WxuserMapper extends BaseMapper<Wxuser> {

    //通过openid和unionid查询t_wxuser表  连表查询+自定义resultMap标签
    Wxuser findByOpenidAndUnionid(TokenResultDto tokenResultDto);
}
